<?php
session_start();
require_once ('../init.php');
require_once ('includes/lib/func_rightCtrl.php');
// 权限控制
admin_rightCtrl();
if($_SESSION['level'] == 0){
	require_once ('includes/views/root_header.php');
}
elseif ($_SESSION['level'] == 1) {
	require_once ('includes/views/admin_header.php');
}
//首页
echo '这是首页';
if(isset($_GET['action']) == 'logout'){
	unset($_SESSION['aid']);
	unset($_SESSION['level']);
	echo "<meta http-equiv=refresh content='0; url=/afctf/index.php'>";
}
require_once ('includes/views/footer.php');
